package com.taijihuabao.modules.mapper;

import com.taijihuabao.modules.entity.QuitBusinessEntity;

import java.util.List;

/**
 * 离职申请管理
 * @author wang
 */
public interface QuitBusinessMapper {

    /**
     * 离职申请单列表
     * @param quitBusinessEntity
     * @return
     */
    List<QuitBusinessEntity> selectList(QuitBusinessEntity quitBusinessEntity);

    /**
     * 通过id查找离职申请单
     * @param id
     * @return
     */
    QuitBusinessEntity selectById(Long id);

    /**
     * 通过quitId查找离职申请单
     * @param quitId
     * @return
     */
    QuitBusinessEntity selectByQuitId(String quitId);

    /**
     * 新增离职申请
     * @param quitBusinessEntity
     */
    void insertQuit(QuitBusinessEntity quitBusinessEntity);

    /**
     * 修改离职申请
     * @param quitBusinessEntity
     */
    void updateQuit(QuitBusinessEntity quitBusinessEntity);

    /**
     * 逻辑删除离职申请
     * @param quitBusinessEntity
     */
    void deleteQuit(QuitBusinessEntity quitBusinessEntity);
}
